package com.xxgc.eow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 行业类型
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-21
 */
@Getter
@Setter
@Schema(name = "Industrytype", description = "行业类型")
public class Industrytype implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "行业类型id")
    @TableId(value = "industry_type_id", type = IdType.AUTO)
    private Integer industryTypeId;

    @NotNull
    @Schema(description = "行业类型名")
    private String industryTypeName;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "销毁时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime destroyTime;

    @Schema(description = "假删除状态")
    private Integer tip;

    public Industrytype(String industryTypeName, LocalDateTime createTime, LocalDateTime destroyTime, Integer tip) {
        this.industryTypeName = industryTypeName;
        this.createTime = createTime;
        this.destroyTime = destroyTime;
        this.tip = tip;
    }

    public Industrytype(Integer industryTypeId, String industryTypeName, LocalDateTime createTime, LocalDateTime destroyTime, Integer tip) {
        this.industryTypeId = industryTypeId;
        this.industryTypeName = industryTypeName;
        this.createTime = createTime;
        this.destroyTime = destroyTime;
        this.tip = tip;
    }

    public Industrytype() {
    }

    @Override
    public String toString() {
        return "Industrytype{" +
                "industryTypeId=" + industryTypeId +
                ", industryTypeName='" + industryTypeName + '\'' +
                ", createTime=" + createTime +
                ", destroyTime=" + destroyTime +
                ", tip=" + tip +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getIndustryTypeId() {
        return industryTypeId;
    }

    public void setIndustryTypeId(Integer industryTypeId) {
        this.industryTypeId = industryTypeId;
    }

    public String getIndustryTypeName() {
        return industryTypeName;
    }

    public void setIndustryTypeName(String industryTypeName) {
        this.industryTypeName = industryTypeName;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getDestroyTime() {
        return destroyTime;
    }

    public void setDestroyTime(LocalDateTime destroyTime) {
        this.destroyTime = destroyTime;
    }

    public Integer getTip() {
        return tip;
    }

    public void setTip(Integer tip) {
        this.tip = tip;
    }
}
